﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbstractFactoryPattern
{
    public class ColorFactory : AbstractFactory
    {
        public override Color GetColor(ColorType colorType)
        {
            if (colorType == ColorType.Red)
            {
                return new Red();
            }
            else if (colorType == ColorType.Green)
            {
                return new Green();
            }
            else if (colorType == ColorType.Blue)
            {
                return new Blue();
            }

            return null;
        }

        public override Shape GetShape(ShapeType shapeType)
        {
            return null;
        }
    }
}
